import {javaInstance} from '@/utils/https.js'

// 获取作品列表
export const workListApi = (params,data) => {
    return javaInstance({
        url: '/work/backWorkList',
        method: 'POST',
        params,
        data
    })
}

// 获取今日新增作品数量
export const newWorkNumApi = () => {
    return javaInstance({
        url: '/work/getNewWorkNum',
        method: 'GET'
    })
}

// 获取今日新增作品数量
export const delWorkByIdApi = (params) => {
    return javaInstance({
        url: '/work/delete',
        method: 'delete',
        params
    })
}

// 获取今日新增作品数量
export const updateworkApi = (data) => {
    return javaInstance({
        url: '/work/update',
        method: 'PUT',
        data
    })
}

